package com.netty.util;

import java.util.Map;

public class MessageHeader {
	
	private String crcCode;
	private int length;
	private int type;
	private long sessionID;
	private Map<String, Object> attachment;
	
	public String getCrcCode() {
		return crcCode;
	}
	public void setCrcCode(String crcCode) {
		this.crcCode = crcCode;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getType() {
		return type;
	}

	/**
	 * 0，业务请求消息
	 * 1、业务响应消息
	 * 2、业务ONE WAY消息
	 * 3、握手请求消息
	 * 4、握手应答消息
	 * 5、心跳应答消息
	 */
	public void setType(int type) {
		this.type = type;
	}
	public long getSessionID() {
		return sessionID;
	}
	public void setSessionID(long sessionID) {
		this.sessionID = sessionID;
	}
	public Map<String, Object> getAttachment() {
		return attachment;
	}
	public void setAttachment(Map<String, Object> attachment) {
		this.attachment = attachment;
	}
	
}
